package qf.module.gateway;

import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import qf.common.core.web.vo.AjaxResult;

@RestController
@RequestMapping("gateway/api")
public class GateWayController {

    @RequestMapping("/v1/test")
    public AjaxResult myBatisTest(@Param(value = "name") String name) {
        System.out.println("我进来啦！！！！！" + name);
        return AjaxResult.success((Object)name);
    }

    @RequestMapping("/v2/test")
    public AjaxResult myBatisTest(@RequestBody Object obj) {
        System.out.println("我进来啦！！！！！" + obj.toString());
        return AjaxResult.success(obj);
    }

}
